/**
 * Copyright (C) 2011 Andrew C. Love (DNC) <dnc.app.sup@gmail.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.dnc.cloak.framework.persistence.gen;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SecRestrictionTypeExample {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    protected String orderByClause;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    protected boolean distinct;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    protected List<Criteria> oredCriteria;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public SecRestrictionTypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRestrictionTypeIsNull() {
            addCriterion("RESTRICTION_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeIsNotNull() {
            addCriterion("RESTRICTION_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeEqualTo(String value) {
            addCriterion("RESTRICTION_TYPE =", value, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeNotEqualTo(String value) {
            addCriterion("RESTRICTION_TYPE <>", value, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeGreaterThan(String value) {
            addCriterion("RESTRICTION_TYPE >", value, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeGreaterThanOrEqualTo(String value) {
            addCriterion("RESTRICTION_TYPE >=", value, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeLessThan(String value) {
            addCriterion("RESTRICTION_TYPE <", value, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeLessThanOrEqualTo(String value) {
            addCriterion("RESTRICTION_TYPE <=", value, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeLike(String value) {
            addCriterion("RESTRICTION_TYPE like", value, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeNotLike(String value) {
            addCriterion("RESTRICTION_TYPE not like", value, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeIn(List<String> values) {
            addCriterion("RESTRICTION_TYPE in", values, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeNotIn(List<String> values) {
            addCriterion("RESTRICTION_TYPE not in", values, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeBetween(String value1, String value2) {
            addCriterion("RESTRICTION_TYPE between", value1, value2, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andRestrictionTypeNotBetween(String value1, String value2) {
            addCriterion("RESTRICTION_TYPE not between", value1, value2, "restrictionType");
            return (Criteria) this;
        }

        public Criteria andLstUptUserIsNull() {
            addCriterion("LST_UPT_USER is null");
            return (Criteria) this;
        }

        public Criteria andLstUptUserIsNotNull() {
            addCriterion("LST_UPT_USER is not null");
            return (Criteria) this;
        }

        public Criteria andLstUptUserEqualTo(String value) {
            addCriterion("LST_UPT_USER =", value, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserNotEqualTo(String value) {
            addCriterion("LST_UPT_USER <>", value, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserGreaterThan(String value) {
            addCriterion("LST_UPT_USER >", value, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserGreaterThanOrEqualTo(String value) {
            addCriterion("LST_UPT_USER >=", value, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserLessThan(String value) {
            addCriterion("LST_UPT_USER <", value, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserLessThanOrEqualTo(String value) {
            addCriterion("LST_UPT_USER <=", value, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserLike(String value) {
            addCriterion("LST_UPT_USER like", value, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserNotLike(String value) {
            addCriterion("LST_UPT_USER not like", value, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserIn(List<String> values) {
            addCriterion("LST_UPT_USER in", values, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserNotIn(List<String> values) {
            addCriterion("LST_UPT_USER not in", values, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserBetween(String value1, String value2) {
            addCriterion("LST_UPT_USER between", value1, value2, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptUserNotBetween(String value1, String value2) {
            addCriterion("LST_UPT_USER not between", value1, value2, "lstUptUser");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeIsNull() {
            addCriterion("LST_UPT_TIME is null");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeIsNotNull() {
            addCriterion("LST_UPT_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeEqualTo(Date value) {
            addCriterion("LST_UPT_TIME =", value, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeNotEqualTo(Date value) {
            addCriterion("LST_UPT_TIME <>", value, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeGreaterThan(Date value) {
            addCriterion("LST_UPT_TIME >", value, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("LST_UPT_TIME >=", value, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeLessThan(Date value) {
            addCriterion("LST_UPT_TIME <", value, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeLessThanOrEqualTo(Date value) {
            addCriterion("LST_UPT_TIME <=", value, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeIn(List<Date> values) {
            addCriterion("LST_UPT_TIME in", values, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeNotIn(List<Date> values) {
            addCriterion("LST_UPT_TIME not in", values, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeBetween(Date value1, Date value2) {
            addCriterion("LST_UPT_TIME between", value1, value2, "lstUptTime");
            return (Criteria) this;
        }

        public Criteria andLstUptTimeNotBetween(Date value1, Date value2) {
            addCriterion("LST_UPT_TIME not between", value1, value2, "lstUptTime");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sec_restriction_type
     *
     * @mbggenerated do_not_delete_during_merge Tue Feb 15 13:27:26 EST 2011
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sec_restriction_type
     *
     * @mbggenerated Tue Feb 15 13:27:26 EST 2011
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value) {
            super();
            this.condition = condition;
            this.value = value;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.betweenValue = true;
        }
    }
}